<?php
/**
 * Created by PhpStorm.
 * User: chenishr
 * Date: 06/05/2018
 * Time: 7:29 PM
 */

use \Chenishr\Qrcode\BgQrcode;

require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../src/BgQrcode.php';

$bgc = new BgQrcode('https://blog.chenishr.com/','./bg.png');

$bgc->setSize(300);

$bgc->writeFile('./qrcode.png');

file_put_contents('./bgqrcode.png',$bgc->get_output());